package com.aistar.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class ContestExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public ContestExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andContestIdIsNull() {
            addCriterion("contest_id is null");
            return (Criteria) this;
        }

        public Criteria andContestIdIsNotNull() {
            addCriterion("contest_id is not null");
            return (Criteria) this;
        }

        public Criteria andContestIdEqualTo(Integer value) {
            addCriterion("contest_id =", value, "contestId");
            return (Criteria) this;
        }

        public Criteria andContestIdNotEqualTo(Integer value) {
            addCriterion("contest_id <>", value, "contestId");
            return (Criteria) this;
        }

        public Criteria andContestIdGreaterThan(Integer value) {
            addCriterion("contest_id >", value, "contestId");
            return (Criteria) this;
        }

        public Criteria andContestIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("contest_id >=", value, "contestId");
            return (Criteria) this;
        }

        public Criteria andContestIdLessThan(Integer value) {
            addCriterion("contest_id <", value, "contestId");
            return (Criteria) this;
        }

        public Criteria andContestIdLessThanOrEqualTo(Integer value) {
            addCriterion("contest_id <=", value, "contestId");
            return (Criteria) this;
        }

        public Criteria andContestIdIn(List<Integer> values) {
            addCriterion("contest_id in", values, "contestId");
            return (Criteria) this;
        }

        public Criteria andContestIdNotIn(List<Integer> values) {
            addCriterion("contest_id not in", values, "contestId");
            return (Criteria) this;
        }

        public Criteria andContestIdBetween(Integer value1, Integer value2) {
            addCriterion("contest_id between", value1, value2, "contestId");
            return (Criteria) this;
        }

        public Criteria andContestIdNotBetween(Integer value1, Integer value2) {
            addCriterion("contest_id not between", value1, value2, "contestId");
            return (Criteria) this;
        }

        public Criteria andProgramId1IsNull() {
            addCriterion("program_id1 is null");
            return (Criteria) this;
        }

        public Criteria andProgramId1IsNotNull() {
            addCriterion("program_id1 is not null");
            return (Criteria) this;
        }

        public Criteria andProgramId1EqualTo(Integer value) {
            addCriterion("program_id1 =", value, "programId1");
            return (Criteria) this;
        }

        public Criteria andProgramId1NotEqualTo(Integer value) {
            addCriterion("program_id1 <>", value, "programId1");
            return (Criteria) this;
        }

        public Criteria andProgramId1GreaterThan(Integer value) {
            addCriterion("program_id1 >", value, "programId1");
            return (Criteria) this;
        }

        public Criteria andProgramId1GreaterThanOrEqualTo(Integer value) {
            addCriterion("program_id1 >=", value, "programId1");
            return (Criteria) this;
        }

        public Criteria andProgramId1LessThan(Integer value) {
            addCriterion("program_id1 <", value, "programId1");
            return (Criteria) this;
        }

        public Criteria andProgramId1LessThanOrEqualTo(Integer value) {
            addCriterion("program_id1 <=", value, "programId1");
            return (Criteria) this;
        }

        public Criteria andProgramId1In(List<Integer> values) {
            addCriterion("program_id1 in", values, "programId1");
            return (Criteria) this;
        }

        public Criteria andProgramId1NotIn(List<Integer> values) {
            addCriterion("program_id1 not in", values, "programId1");
            return (Criteria) this;
        }

        public Criteria andProgramId1Between(Integer value1, Integer value2) {
            addCriterion("program_id1 between", value1, value2, "programId1");
            return (Criteria) this;
        }

        public Criteria andProgramId1NotBetween(Integer value1, Integer value2) {
            addCriterion("program_id1 not between", value1, value2, "programId1");
            return (Criteria) this;
        }

        public Criteria andProgramId2IsNull() {
            addCriterion("program_id2 is null");
            return (Criteria) this;
        }

        public Criteria andProgramId2IsNotNull() {
            addCriterion("program_id2 is not null");
            return (Criteria) this;
        }

        public Criteria andProgramId2EqualTo(Integer value) {
            addCriterion("program_id2 =", value, "programId2");
            return (Criteria) this;
        }

        public Criteria andProgramId2NotEqualTo(Integer value) {
            addCriterion("program_id2 <>", value, "programId2");
            return (Criteria) this;
        }

        public Criteria andProgramId2GreaterThan(Integer value) {
            addCriterion("program_id2 >", value, "programId2");
            return (Criteria) this;
        }

        public Criteria andProgramId2GreaterThanOrEqualTo(Integer value) {
            addCriterion("program_id2 >=", value, "programId2");
            return (Criteria) this;
        }

        public Criteria andProgramId2LessThan(Integer value) {
            addCriterion("program_id2 <", value, "programId2");
            return (Criteria) this;
        }

        public Criteria andProgramId2LessThanOrEqualTo(Integer value) {
            addCriterion("program_id2 <=", value, "programId2");
            return (Criteria) this;
        }

        public Criteria andProgramId2In(List<Integer> values) {
            addCriterion("program_id2 in", values, "programId2");
            return (Criteria) this;
        }

        public Criteria andProgramId2NotIn(List<Integer> values) {
            addCriterion("program_id2 not in", values, "programId2");
            return (Criteria) this;
        }

        public Criteria andProgramId2Between(Integer value1, Integer value2) {
            addCriterion("program_id2 between", value1, value2, "programId2");
            return (Criteria) this;
        }

        public Criteria andProgramId2NotBetween(Integer value1, Integer value2) {
            addCriterion("program_id2 not between", value1, value2, "programId2");
            return (Criteria) this;
        }

        public Criteria andProgramId3IsNull() {
            addCriterion("program_id3 is null");
            return (Criteria) this;
        }

        public Criteria andProgramId3IsNotNull() {
            addCriterion("program_id3 is not null");
            return (Criteria) this;
        }

        public Criteria andProgramId3EqualTo(Integer value) {
            addCriterion("program_id3 =", value, "programId3");
            return (Criteria) this;
        }

        public Criteria andProgramId3NotEqualTo(Integer value) {
            addCriterion("program_id3 <>", value, "programId3");
            return (Criteria) this;
        }

        public Criteria andProgramId3GreaterThan(Integer value) {
            addCriterion("program_id3 >", value, "programId3");
            return (Criteria) this;
        }

        public Criteria andProgramId3GreaterThanOrEqualTo(Integer value) {
            addCriterion("program_id3 >=", value, "programId3");
            return (Criteria) this;
        }

        public Criteria andProgramId3LessThan(Integer value) {
            addCriterion("program_id3 <", value, "programId3");
            return (Criteria) this;
        }

        public Criteria andProgramId3LessThanOrEqualTo(Integer value) {
            addCriterion("program_id3 <=", value, "programId3");
            return (Criteria) this;
        }

        public Criteria andProgramId3In(List<Integer> values) {
            addCriterion("program_id3 in", values, "programId3");
            return (Criteria) this;
        }

        public Criteria andProgramId3NotIn(List<Integer> values) {
            addCriterion("program_id3 not in", values, "programId3");
            return (Criteria) this;
        }

        public Criteria andProgramId3Between(Integer value1, Integer value2) {
            addCriterion("program_id3 between", value1, value2, "programId3");
            return (Criteria) this;
        }

        public Criteria andProgramId3NotBetween(Integer value1, Integer value2) {
            addCriterion("program_id3 not between", value1, value2, "programId3");
            return (Criteria) this;
        }

        public Criteria andContestNameIsNull() {
            addCriterion("contest_name is null");
            return (Criteria) this;
        }

        public Criteria andContestNameIsNotNull() {
            addCriterion("contest_name is not null");
            return (Criteria) this;
        }

        public Criteria andContestNameEqualTo(String value) {
            addCriterion("contest_name =", value, "contestName");
            return (Criteria) this;
        }

        public Criteria andContestNameNotEqualTo(String value) {
            addCriterion("contest_name <>", value, "contestName");
            return (Criteria) this;
        }

        public Criteria andContestNameGreaterThan(String value) {
            addCriterion("contest_name >", value, "contestName");
            return (Criteria) this;
        }

        public Criteria andContestNameGreaterThanOrEqualTo(String value) {
            addCriterion("contest_name >=", value, "contestName");
            return (Criteria) this;
        }

        public Criteria andContestNameLessThan(String value) {
            addCriterion("contest_name <", value, "contestName");
            return (Criteria) this;
        }

        public Criteria andContestNameLessThanOrEqualTo(String value) {
            addCriterion("contest_name <=", value, "contestName");
            return (Criteria) this;
        }

        public Criteria andContestNameLike(String value) {
            addCriterion("contest_name like", value, "contestName");
            return (Criteria) this;
        }

        public Criteria andContestNameNotLike(String value) {
            addCriterion("contest_name not like", value, "contestName");
            return (Criteria) this;
        }

        public Criteria andContestNameIn(List<String> values) {
            addCriterion("contest_name in", values, "contestName");
            return (Criteria) this;
        }

        public Criteria andContestNameNotIn(List<String> values) {
            addCriterion("contest_name not in", values, "contestName");
            return (Criteria) this;
        }

        public Criteria andContestNameBetween(String value1, String value2) {
            addCriterion("contest_name between", value1, value2, "contestName");
            return (Criteria) this;
        }

        public Criteria andContestNameNotBetween(String value1, String value2) {
            addCriterion("contest_name not between", value1, value2, "contestName");
            return (Criteria) this;
        }

        public Criteria andContestStartTimeIsNull() {
            addCriterion("contest_start_time is null");
            return (Criteria) this;
        }

        public Criteria andContestStartTimeIsNotNull() {
            addCriterion("contest_start_time is not null");
            return (Criteria) this;
        }

        public Criteria andContestStartTimeEqualTo(Date value) {
            addCriterion("contest_start_time =", value, "contestStartTime");
            return (Criteria) this;
        }

        public Criteria andContestStartTimeNotEqualTo(Date value) {
            addCriterion("contest_start_time <>", value, "contestStartTime");
            return (Criteria) this;
        }

        public Criteria andContestStartTimeGreaterThan(Date value) {
            addCriterion("contest_start_time >", value, "contestStartTime");
            return (Criteria) this;
        }

        public Criteria andContestStartTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("contest_start_time >=", value, "contestStartTime");
            return (Criteria) this;
        }

        public Criteria andContestStartTimeLessThan(Date value) {
            addCriterion("contest_start_time <", value, "contestStartTime");
            return (Criteria) this;
        }

        public Criteria andContestStartTimeLessThanOrEqualTo(Date value) {
            addCriterion("contest_start_time <=", value, "contestStartTime");
            return (Criteria) this;
        }

        public Criteria andContestStartTimeIn(List<Date> values) {
            addCriterion("contest_start_time in", values, "contestStartTime");
            return (Criteria) this;
        }

        public Criteria andContestStartTimeNotIn(List<Date> values) {
            addCriterion("contest_start_time not in", values, "contestStartTime");
            return (Criteria) this;
        }

        public Criteria andContestStartTimeBetween(Date value1, Date value2) {
            addCriterion("contest_start_time between", value1, value2, "contestStartTime");
            return (Criteria) this;
        }

        public Criteria andContestStartTimeNotBetween(Date value1, Date value2) {
            addCriterion("contest_start_time not between", value1, value2, "contestStartTime");
            return (Criteria) this;
        }

        public Criteria andContestEndTimeIsNull() {
            addCriterion("contest_end_time is null");
            return (Criteria) this;
        }

        public Criteria andContestEndTimeIsNotNull() {
            addCriterion("contest_end_time is not null");
            return (Criteria) this;
        }

        public Criteria andContestEndTimeEqualTo(Date value) {
            addCriterion("contest_end_time =", value, "contestEndTime");
            return (Criteria) this;
        }

        public Criteria andContestEndTimeNotEqualTo(Date value) {
            addCriterion("contest_end_time <>", value, "contestEndTime");
            return (Criteria) this;
        }

        public Criteria andContestEndTimeGreaterThan(Date value) {
            addCriterion("contest_end_time >", value, "contestEndTime");
            return (Criteria) this;
        }

        public Criteria andContestEndTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("contest_end_time >=", value, "contestEndTime");
            return (Criteria) this;
        }

        public Criteria andContestEndTimeLessThan(Date value) {
            addCriterion("contest_end_time <", value, "contestEndTime");
            return (Criteria) this;
        }

        public Criteria andContestEndTimeLessThanOrEqualTo(Date value) {
            addCriterion("contest_end_time <=", value, "contestEndTime");
            return (Criteria) this;
        }

        public Criteria andContestEndTimeIn(List<Date> values) {
            addCriterion("contest_end_time in", values, "contestEndTime");
            return (Criteria) this;
        }

        public Criteria andContestEndTimeNotIn(List<Date> values) {
            addCriterion("contest_end_time not in", values, "contestEndTime");
            return (Criteria) this;
        }

        public Criteria andContestEndTimeBetween(Date value1, Date value2) {
            addCriterion("contest_end_time between", value1, value2, "contestEndTime");
            return (Criteria) this;
        }

        public Criteria andContestEndTimeNotBetween(Date value1, Date value2) {
            addCriterion("contest_end_time not between", value1, value2, "contestEndTime");
            return (Criteria) this;
        }

        public Criteria andContestJoinPerIsNull() {
            addCriterion("contest_join_per is null");
            return (Criteria) this;
        }

        public Criteria andContestJoinPerIsNotNull() {
            addCriterion("contest_join_per is not null");
            return (Criteria) this;
        }

        public Criteria andContestJoinPerEqualTo(Integer value) {
            addCriterion("contest_join_per =", value, "contestJoinPer");
            return (Criteria) this;
        }

        public Criteria andContestJoinPerNotEqualTo(Integer value) {
            addCriterion("contest_join_per <>", value, "contestJoinPer");
            return (Criteria) this;
        }

        public Criteria andContestJoinPerGreaterThan(Integer value) {
            addCriterion("contest_join_per >", value, "contestJoinPer");
            return (Criteria) this;
        }

        public Criteria andContestJoinPerGreaterThanOrEqualTo(Integer value) {
            addCriterion("contest_join_per >=", value, "contestJoinPer");
            return (Criteria) this;
        }

        public Criteria andContestJoinPerLessThan(Integer value) {
            addCriterion("contest_join_per <", value, "contestJoinPer");
            return (Criteria) this;
        }

        public Criteria andContestJoinPerLessThanOrEqualTo(Integer value) {
            addCriterion("contest_join_per <=", value, "contestJoinPer");
            return (Criteria) this;
        }

        public Criteria andContestJoinPerIn(List<Integer> values) {
            addCriterion("contest_join_per in", values, "contestJoinPer");
            return (Criteria) this;
        }

        public Criteria andContestJoinPerNotIn(List<Integer> values) {
            addCriterion("contest_join_per not in", values, "contestJoinPer");
            return (Criteria) this;
        }

        public Criteria andContestJoinPerBetween(Integer value1, Integer value2) {
            addCriterion("contest_join_per between", value1, value2, "contestJoinPer");
            return (Criteria) this;
        }

        public Criteria andContestJoinPerNotBetween(Integer value1, Integer value2) {
            addCriterion("contest_join_per not between", value1, value2, "contestJoinPer");
            return (Criteria) this;
        }

        public Criteria andContestPassPerIsNull() {
            addCriterion("contest_pass_per is null");
            return (Criteria) this;
        }

        public Criteria andContestPassPerIsNotNull() {
            addCriterion("contest_pass_per is not null");
            return (Criteria) this;
        }

        public Criteria andContestPassPerEqualTo(Integer value) {
            addCriterion("contest_pass_per =", value, "contestPassPer");
            return (Criteria) this;
        }

        public Criteria andContestPassPerNotEqualTo(Integer value) {
            addCriterion("contest_pass_per <>", value, "contestPassPer");
            return (Criteria) this;
        }

        public Criteria andContestPassPerGreaterThan(Integer value) {
            addCriterion("contest_pass_per >", value, "contestPassPer");
            return (Criteria) this;
        }

        public Criteria andContestPassPerGreaterThanOrEqualTo(Integer value) {
            addCriterion("contest_pass_per >=", value, "contestPassPer");
            return (Criteria) this;
        }

        public Criteria andContestPassPerLessThan(Integer value) {
            addCriterion("contest_pass_per <", value, "contestPassPer");
            return (Criteria) this;
        }

        public Criteria andContestPassPerLessThanOrEqualTo(Integer value) {
            addCriterion("contest_pass_per <=", value, "contestPassPer");
            return (Criteria) this;
        }

        public Criteria andContestPassPerIn(List<Integer> values) {
            addCriterion("contest_pass_per in", values, "contestPassPer");
            return (Criteria) this;
        }

        public Criteria andContestPassPerNotIn(List<Integer> values) {
            addCriterion("contest_pass_per not in", values, "contestPassPer");
            return (Criteria) this;
        }

        public Criteria andContestPassPerBetween(Integer value1, Integer value2) {
            addCriterion("contest_pass_per between", value1, value2, "contestPassPer");
            return (Criteria) this;
        }

        public Criteria andContestPassPerNotBetween(Integer value1, Integer value2) {
            addCriterion("contest_pass_per not between", value1, value2, "contestPassPer");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("status is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("status is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(Integer value) {
            addCriterion("status =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(Integer value) {
            addCriterion("status <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(Integer value) {
            addCriterion("status >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("status >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(Integer value) {
            addCriterion("status <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(Integer value) {
            addCriterion("status <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<Integer> values) {
            addCriterion("status in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<Integer> values) {
            addCriterion("status not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(Integer value1, Integer value2) {
            addCriterion("status between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("status not between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andOther1IsNull() {
            addCriterion("other1 is null");
            return (Criteria) this;
        }

        public Criteria andOther1IsNotNull() {
            addCriterion("other1 is not null");
            return (Criteria) this;
        }

        public Criteria andOther1EqualTo(String value) {
            addCriterion("other1 =", value, "other1");
            return (Criteria) this;
        }

        public Criteria andOther1NotEqualTo(String value) {
            addCriterion("other1 <>", value, "other1");
            return (Criteria) this;
        }

        public Criteria andOther1GreaterThan(String value) {
            addCriterion("other1 >", value, "other1");
            return (Criteria) this;
        }

        public Criteria andOther1GreaterThanOrEqualTo(String value) {
            addCriterion("other1 >=", value, "other1");
            return (Criteria) this;
        }

        public Criteria andOther1LessThan(String value) {
            addCriterion("other1 <", value, "other1");
            return (Criteria) this;
        }

        public Criteria andOther1LessThanOrEqualTo(String value) {
            addCriterion("other1 <=", value, "other1");
            return (Criteria) this;
        }

        public Criteria andOther1Like(String value) {
            addCriterion("other1 like", value, "other1");
            return (Criteria) this;
        }

        public Criteria andOther1NotLike(String value) {
            addCriterion("other1 not like", value, "other1");
            return (Criteria) this;
        }

        public Criteria andOther1In(List<String> values) {
            addCriterion("other1 in", values, "other1");
            return (Criteria) this;
        }

        public Criteria andOther1NotIn(List<String> values) {
            addCriterion("other1 not in", values, "other1");
            return (Criteria) this;
        }

        public Criteria andOther1Between(String value1, String value2) {
            addCriterion("other1 between", value1, value2, "other1");
            return (Criteria) this;
        }

        public Criteria andOther1NotBetween(String value1, String value2) {
            addCriterion("other1 not between", value1, value2, "other1");
            return (Criteria) this;
        }

        public Criteria andOther2IsNull() {
            addCriterion("other2 is null");
            return (Criteria) this;
        }

        public Criteria andOther2IsNotNull() {
            addCriterion("other2 is not null");
            return (Criteria) this;
        }

        public Criteria andOther2EqualTo(String value) {
            addCriterion("other2 =", value, "other2");
            return (Criteria) this;
        }

        public Criteria andOther2NotEqualTo(String value) {
            addCriterion("other2 <>", value, "other2");
            return (Criteria) this;
        }

        public Criteria andOther2GreaterThan(String value) {
            addCriterion("other2 >", value, "other2");
            return (Criteria) this;
        }

        public Criteria andOther2GreaterThanOrEqualTo(String value) {
            addCriterion("other2 >=", value, "other2");
            return (Criteria) this;
        }

        public Criteria andOther2LessThan(String value) {
            addCriterion("other2 <", value, "other2");
            return (Criteria) this;
        }

        public Criteria andOther2LessThanOrEqualTo(String value) {
            addCriterion("other2 <=", value, "other2");
            return (Criteria) this;
        }

        public Criteria andOther2Like(String value) {
            addCriterion("other2 like", value, "other2");
            return (Criteria) this;
        }

        public Criteria andOther2NotLike(String value) {
            addCriterion("other2 not like", value, "other2");
            return (Criteria) this;
        }

        public Criteria andOther2In(List<String> values) {
            addCriterion("other2 in", values, "other2");
            return (Criteria) this;
        }

        public Criteria andOther2NotIn(List<String> values) {
            addCriterion("other2 not in", values, "other2");
            return (Criteria) this;
        }

        public Criteria andOther2Between(String value1, String value2) {
            addCriterion("other2 between", value1, value2, "other2");
            return (Criteria) this;
        }

        public Criteria andOther2NotBetween(String value1, String value2) {
            addCriterion("other2 not between", value1, value2, "other2");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}